﻿using System;
using System.Collections;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;

namespace Jy123.Web.Blog
{
    /// <summary>
    /// $codebehindclassname$ 的摘要说明
    /// </summary>
    //[WebService(Namespace = "http://tempuri.org/")]
    //[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class Blog : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            string ids = context.Request.Form["chkedid"];

            if (context.Request.Form["delBlog"] == "Submit")
            {
                //Jy123.Model.User_Blog mBlog = new Jy123.Model.User_Blog();
                Jy123.BLL.User_Blog bllBlog = new Jy123.BLL.User_Blog();
                new BLL.User.Blog().DelBlogs(ids);
                context.Response.Redirect("BlogList_My.aspx");
            }
            context.Response.ContentType = "text/plain";
            context.Response.Write(ids);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}
